cmake_minimum_required(VERSION 3.10)
project(Awesome VERSION 1.0 LANGUAGES CXX)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 包含目录
include_directories(${PROJECT_SOURCE_DIR}/include)

# 源码目录
file(GLOB SOURCES "${PROJECT_SOURCE_DIR}/src/*.cpp")

# 可执行文件名称
set(EXECUTABLE_NAME awesome)

# 创建可执行文件
add_executable(${EXECUTABLE_NAME} ${SOURCES})

# （可选）添加编译选项或链接库
# target_compile_options(${EXECUTABLE_NAME} PRIVATE -Wall -Wextra)
# target_link_libraries(${EXECUTABLE_NAME} <your_libraries_here>)

# 打印一些信息（可选）
message(STATUS "=========== Finished ===========")
message(STATUS "Project: ${PROJECT_NAME}")
message(STATUS "Version: ${PROJECT_VERSION}")
message(STATUS "Building executable: ${EXECUTABLE_NAME}")
message(STATUS "Source files: ${SOURCES}")